package com.ujoku.dao.admin.impl;

import com.labillusion.core.database.base.mybatis.constants.SqlId;
import com.labillusion.core.database.base.mybatis.dao.impl.BaseDaoImpl;
import com.ujoku.dao.admin.ParametersDao;
import com.ujoku.domain.admin.Parameter;
import org.springframework.stereotype.Repository;

/**
 * Created by Greg.Chen on 14-11-1.
 */
@Repository
public class ParametersDaoImpl extends BaseDaoImpl<Parameter> implements ParametersDao<Parameter> {

    @Override
    public Parameter getParameterByKey(String key){
        return (Parameter)sqlSessionTemplate.selectOne(getSqlName("selectByKey"), key);
    }
}
